package com.example.design.shejimoshi.action.visitor.practice1.visit;

import com.example.design.shejimoshi.action.visitor.practice1.element.PdfFile;
import com.example.design.shejimoshi.action.visitor.practice1.element.WordFile;

/**
 * 压缩器
 */
public class Compressor implements Visitor {
    @Override
    public void visit(PdfFile pdfFile) {
        System.out.println("Compress pdfFile");
    }

    @Override
    public void visit(WordFile wordFile) {
        System.out.println("Compress wordFile");
    }
}
